package chess;
import javax.servlet.ServletContext;


public class ContextHelper {
	private ServletContext context ;
	private static ContextHelper helper = new ContextHelper();
	private ContextHelper(){
	}
	public void init(ServletContext ctx){
		context = ctx;
	}
	
	public static ContextHelper getInstance(){
		return helper;
	}
	public void store(String name,Object object){
		helper.context.setAttribute(name,object);
	}
	public Object get(String name){
		return helper.context.getAttribute(name);
	}
}
